package com.zhangliuliu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangliuliu.bean.DiseaseBean;
import org.apache.ibatis.annotations.Param;

public interface DiseaseService extends IService<DiseaseBean> {
    //添加新病害
    void add(DiseaseBean diseaseBean);
    //查看详细信息
    DiseaseBean find(int id);
    //按照名称和发病症状分页查询所有的信息
    IPage<DiseaseBean> cutByItem(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize,@Param("name") String name, @Param("disease") String disease);
    //根据名称和主要危害，发病规律分页查询在首页展示
    IPage<DiseaseBean>cut(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize,@Param("name") String name,@Param("harm") String harm,@Param("regular") String regular);
}
